Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: Shift-click equivalent for selecting documents?
~Umberto Nongeroson 3.Jan.04 01:28 AM a Web browser
Notes Client 6.5 Windows XP


If there is some rule that you could use to determine which documents you're interested in, you could use a full-text query to search for them. Then either use Ctrl+A, or select View / Show and uncheck Search Results Only to return to the full view with the matching documents checked.

Or, you could write a formula agent to select the documents. When you edit a formula agent, you may notice there's a field at the bottom right corner of the screen where you can select to modify documents (the default), select documents, or create documents. Choose "select documents", and any documents that match your selection criteria will be ticked in the view when you run the agent. FIELD statements in the agent will not be executed.

If the criteria you use to select the documents vary, then you can use the @Eval function in the SELECT statement of your agent to run a formula that you create in your action button and store in the environment. Something like this:

View Action button:
promptdef := @Environment("MassSelect");
@If(promptdef = ""; promptdef := "EventType = \"Unusual\" : \"Outrageous\""; "");
t := @Prompt([OkCancelEdit]; "Mass Select"; "Please enter the selection criteria as a formula expression:"; promptdef);
@If(t = ""; @Return(""); "");
ENVIRONMENT MassSelect := t;
@Command([ToolsRunMacro]; "MassSelectAgent")

Agent MassSelectAgent (run on all documents in view, "select documents" type):
SELECT @Eval(@Environment("MassSelect"))

The same type of view action could also be implemented in LotusScript of course, allowing you to display a dialogbox with a more user-friendly way of entering selection criteria, and calculate the search expression rather than making the user write macro code. Or if the idea is to select all the documents in one or more categories, you could prompt them to select multiple values out of a list of categories.

Depending what you intend to do with the selected documents, though, it may give better performance as well as a smoother UI to have an integrated function -- an agent that instead of just acting on the selected documents, prompts you with a dialogbox to select the criteria for the documents it is to operate on. You may either enter some search properties, or click a "selected documents" button in the dialog to process the documents already selected in the view. If the latter, it uses UnprocessedDocuments; else it does a full-text or macro search among the documents in the current view (or all documents, if you prefer that).




Shift-click equivalent for selectin... (~Denise Nonnith... 2.Jan.04)
. . RE: Shift-click equivalent for sele... (~Anita Ekjumibe... 2.Jan.04)
. . RE: Shift-click equivalent for sele... (~Bill Frokimari... 3.Jan.04)
. . . . RE: Shift-click equivalent for sele... (~Denise Nonnith... 5.Jan.04)
. . . . . . RE: Shift-click equivalent for sele... (~Hal Zenrekonyl... 5.Jan.04)
. . . . . . . . You could walk the ViewEntries, but... (~Sanjay Quettum... 5.Jan.04)
. . . . . . . . . . RE: You could walk the ViewEntries,... (~Hal Zenrekonyl... 5.Jan.04)
. . . . . . . . . . . . Re: You could walk the ViewEntries,... (~Sanjay Quettum... 5.Jan.04)
. . . . . . . . . . . . . . RE: Re: You could walk the ViewEntr... (~Hal Zenrekonyl... 5.Jan.04)
. . . . . . . . . . . . . . . . RE: Re: You could walk the ViewEntr... (~Naomi Deskrote... 5.Jan.04)
. . . . . . . . . . RE: You could walk the ViewEntries,... (~Bill Frokimari... 5.Jan.04)
. . . . . . . . . . . . RE: You could walk the ViewEntries,... (~Hal Zenrekonyl... 5.Jan.04)
. . it's remarkable this has been missi... (~Paul Opfanakon... 3.Jan.04)
. . RE: Shift-click equivalent for sele... (~Paul Dwotumili... 7.Jan.04)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS